﻿@model asMeishi.web.Models.user
@using asMeishi.web.Models
@using publicLibrary;

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Edit</h2>
<div>@TempData["info"]</div>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Fields</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.name)
            @Html.ValidationMessageFor(model => model.name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.email)
            @Html.ValidationMessageFor(model => model.email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.password)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.password)
            @Html.ValidationMessageFor(model => model.password)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.sex)
        </div>
        <div class="editor-field">
            @Html.myHtmlDom("sex", dictClass.get("性别"), selectType.单选, Model.sex)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.birth)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.birth)
            @Html.ValidationMessageFor(model => model.birth)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.QQ)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.QQ)

        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.msn)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.msn)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.addressNum)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.addressNum)
        </div>


        <div class="editor-label">
            @Html.LabelFor(model => model.experience)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.experience)
            @Html.ValidationMessageFor(model => model.experience)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.laterDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.laterDate)
            @Html.ValidationMessageFor(model => model.laterDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.regDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.regDate)
            @Html.ValidationMessageFor(model => model.regDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.limit)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.limit)
            @Html.ValidationMessageFor(model => model.limit)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.group)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.group)
            @Html.ValidationMessageFor(model => model.group)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

